package com.jfs.exception;

import lombok.Getter;
import org.springframework.security.core.AuthenticationException;

/**
 * @author cwm
 * @Description 自定义权限不足异常
 * @E-mail cwm3412638@163.com
 * @date 2022-08-09 9:09 下午
 */
@Getter
public class ForbiddenException extends AuthenticationException {
    private final Integer code;
    public ForbiddenException(String msg, Integer code) {
        super(msg);
        this.code=code;
    }
}
